var result = 0;
var i = 1;
do{
    result += i;
    i++;
}while(i<=100);
console.log(result)
